<template>
    <div id="box">
        <p>请您选择注册账号的类型</p>
        <div>
            <button @click="go(1)">专技人才注册</button>
            <button @click="go(2)">用人单位注册</button>
        </div>
    </div>
</template>
<style lang="less" scoped>
#box{
    width: 95%;
    height: 585px;
    border: 1px solid rgb(201, 201, 201);
    margin: 0 auto;
    p{
        height: 80px;
        line-height: 80px;
        font-size: 14px;
    }
    div{
        margin-left:35px
    }
    button{
        background: #fff;
        outline: none;
        border: 1px solid rgb(201, 201, 201);
        width: 494px;
        height: 247px;
        margin-right: 50px;
        cursor: pointer;
        color: rgb(102, 102, 102);
        font-weight: 600;
    }
}
</style>
<script>
export default {
  methods:{
    go(index){
        switch(index){
            case 1:{
                sessionStorage.setItem('RegisterIndex','1');
                this.$router.push('/Register');
                break;
            }
            case 2:{
                sessionStorage.setItem('RegisterIndex','2');
                this.$router.push('/Register/CompanyRegister');
                break;
            }
        }
    }
  },
  mounted(){
    sessionStorage.setItem('fName','RegisterHome')
  }
};
</script>
